from django.urls import path,include
from . import views
from .feeds import LatestPostsFeed
app_name='blog'
urlpatterns = [
    path('',views.post_index,name='post_index'),
    path('contact/',views.post_contact,name='post_contact'),
    path('about/',views.post_about,name='post_about'),
    path('full_width/',views.post_full_width,name='post_full_width'),
    path('single/<int:year>/<int:month>/<int:day>/<slug:post>/',views.post_single,name='post_single'),
    path('pigeonhole/<int:year>/<int:month>/',views.post_pigeonhole,name='post_pigeonhole'),
    path('category/<str:title>/',views.post_category,name='post_category'),
    path('feed/',LatestPostsFeed(),name='post_feed'),
    path('tags/<str:title>/',views.post_tags,name='post_tags'),
    path('search/', include('haystack.urls')),#全文检索路由
]